package com.gylang.im.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gylang.mapper.domain.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.Pattern;

/**
 * @author gylang
 * data 2020/9/3
 * @version v0.0.1
 */
@EqualsAndHashCode(callSuper = true)
@TableName("pt_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class PtUserDO extends BaseDO {

    private String username;

    private String password;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String tel;

    private String nickname;

    private String salt;

}
